#include <string>
#include <iostream>

using namespace std;

int main()
{
	string result,s1;
	cout<<"enter a string (include punct)"<<endl;
	getline(cin,s1);
	string::size_type len1;
	bool has_punct=false;
	for(len1=0;len1!=s1.size();len1++)
	{
		if(ispunct(s1[len1]))
			has_punct=true;
		else
			result+=s1[len1];
	}
	if(has_punct)
		cout<<"result:"<<endl<<result<<endl;
	else
	{
		cout<<"sure your string has punct?"<<endl;
		return -1;
	}
	return 0;
}
